#include <ESP8266mDNS.h>

void listenMDNS()
{
  MDNS.begin("myesp8266");
  MDNS.addService("http", "tcp", 80);
  if (MDNS.begin("myesp8266")) {
    Serial.println("mDNS started: http://myesp8266.local");
  } else {
    Serial.println("mDNS start failed");
  }
}

void updateMDNS(){
    MDNS.update();
}